<?php
/**
 * @package WordPress
 * @subpackage Franklin_Street
 */
?>
<?php wp_reset_query(); ?>
<div id="footer" class='span-14 last clearfix'>
	<div class='span-7'>
		<div class='span-4'>
			<?php if(is_home()) : ?>
				<h3>Older Posts</h3>
			<?php else : ?>
				<h3>Recent Posts</h3>
			<?php endif; ?>
			<ul id="footer_recent_posts">
				<?php 
				
				$offset = (is_home())?5:0;
				
				if (function_exists("getPrimaryColumnCategories")) $qry=getPrimaryColumnCategories();				
				query_posts($qry.'&offset='.$offset);
				if(have_posts()) : while(have_posts()) : the_post();
				$category = get_the_category(); 
				?>
					<li class="<?php print $category[0]->category_nicename; ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
				<?php endwhile; else : ?>
					<li>No Posts</li>
				<?php endif; ?>
			</ul>
			<?php if (function_exists("get_mostpopular")) get_mostpopular(); ?>
		</div>
		<div class='span-3 last'>
			<h3>Recent Comments</h3>
			<dl>
				<dt><a href='#'>Commenter</a></dt>
				<dd>thanks for the answer :) allready done that…no i just want a simple thing that i have allready made it...</dd>
				<dt><a href='#'>Commenter</a></dt>
				<dd>thanks for the answer :) allready done that…no i just want a simple thing that i have allready made it...</dd>
				<dt><a href='#'>Commenter</a></dt>
				<dd>thanks for the answer :) allready done that…no i just want a simple thing that i have allready made it...</dd>
				<dt><a href='#'>Commenter</a></dt>
				<dd>thanks for the answer :) allready done that…no i just want a simple thing that i have allready made it...</dd>
			</dl>
		</div>
	</div>
	<div class='span-2'>
		<h3>Categories</h3>
		<ul id="cat_navigation">
			<?php wp_list_categories('title_li='); ?>
		</ul>
	</div>
	<div class='span-2'>
		<?php wp_list_bookmarks(array(
		    'orderby'          => 'name',
		    'order'            => 'ASC',
		    'limit'            => -1,
		    'category'         => null,
		    'exclude_category' => null,
		    'category_name'    => null,
		    'hide_invisible'   => 1,
		    'show_updated'     => 0,
		    'echo'             => 1,
		    'categorize'       => 1,
		    'title_li'         => __('Bookmarks'),
		    'title_before'     => '<h3>',
		    'title_after'      => '</h3>',
		    'category_orderby' => 'name',
		    'category_order'   => 'ASC',
		    'class'            => 'linkcat',
		    'category_before'  => '',
		    'category_after'   => '' )); ?>
	</div>
	<div class='span-3 last'>
		<h3>About This Site</h3>
		<p><?php bloginfo('description'); ?></p>
	</div>
</div>
</div>
<div id="sticky_footer">
	<div class='wrapper'>
	<div class="span-7">
		<h3>Search</h3>
		<?php get_search_form(); ?>
	</div>
	<div class='top span-2'>
		<a href='#top'>Back to Top</a>
	</div>
	<div class='subscribe span-2'>
		<a href="<?php bloginfo('rss2_url'); ?>">Subscribe to RSS</a>
	</div>
	<div class='info span-3 last'>
		&copy; <?php echo date('Y'); ?>, <?php bloginfo('name'); ?>
	</div>	 
	</div>
</div>
<?php wp_footer(); ?>
</body>
</html>